/**
 * 
 */
package com.thor.palmmall.spi.device.weibao;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import com.thor.palmmall.spi.common.SOperateInfo;
import com.thor.palmmall.spi.common.SQueryResult;
import com.thor.palmmall.spi.common.SResponse;
import com.thor.palmmall.spi.common.SUserGroupLoadParam;
import com.thor.palmmall.spi.maintain.SMaintainBillQueryParam;

/**
 * @author NuoSa
 *
 * @since 1.0
 */
@Path("/1/device/maintain")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface SDeviceWeibaoService {

  @POST
  @Path(value = "/create")
  SResponse<String> create(SDeviceWeibao4Create bill, @QueryParam("") SOperateInfo operInfo);

  @POST
  @Path(value = "/{id}")
  SResponse<SDeviceWeibao> get(@PathParam("id") String id, SUserGroupLoadParam param);

  @POST
  @Path(value = "/save")
  SResponse<String> save(SDeviceWeibao bill, @QueryParam("") SOperateInfo operInfo);

  @POST
  @Path(value = "/query")
  SResponse<SQueryResult<SDeviceWeibao>> query(SMaintainBillQueryParam queryParam);

  @GET
  @Path(value = "/queryOutgoingState")
  SResponse<String[]> queryOutgoingState();

  @GET
  @Path(value = "/default")
  SResponse<SDeviceWeibaoConfig> getConfig(@QueryParam("storeUuid") String storeUuid);

}
